package com.zzw.bridge.system.convert;

import com.zzw.bridge.common.entitys.sys.SysUserEntity;
import com.zzw.bridge.common.vo.SysUserVO;
import com.zzw.bridge.security.user.UserDetail;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * <p>项目名称: zzw-tech </p>
 * <p>包名称: com.zzw.mis.system.convert </p>
 * <p>描述:  </p>
 * <p>  </p>
 * <p>创建时间: 2022/11/15 10 </p>
 *
 * @author coco
 * @version v1.0
 */
@Mapper
public interface SysUserConvert {
	SysUserConvert INSTANCE = Mappers.getMapper(SysUserConvert.class);

	SysUserVO convert (SysUserEntity entity);

	SysUserEntity convert (SysUserVO vo);

	SysUserVO convert (UserDetail userDetail);

	UserDetail convertDetail (SysUserEntity entity);

	List<SysUserVO> convertList (List<SysUserEntity> list);

}
